package machines

import (
	"context"
	"zuhao-seucre/internal/enums"
	"zuhao-seucre/internal/service"

	"zuhao-seucre/api/machines/v1"
)

func (c *ControllerV1) MachinesDashbord(ctx context.Context, req *v1.MachinesDashbordReq) (res *v1.MachinesDashbordRes, err error) {

	count := service.Tag().GetAccountTagCount(ctx, enums.TagTypeMachineAuthCert)
	res = new(v1.MachinesDashbordRes)
	res.MachineNum = count
	return
}
